<!-- 参考官方文档 -->
<template>
    <view class="box-grid-3">
        <navigator url="/pages/other/page-lifecycle-detail/page-lifecycle-detail?name=张三&age=18">页面生命周期</navigator>
        <navigator url="/pages/other/conditional-compilation-detail/conditional-compilation-detail">条件编译</navigator>
    </view>
</template>

<script lang="ts" setup>
    import { onTabItemTap } from "@dcloudio/uni-app";

    //点击tabBar触发事件
    onTabItemTap(() => {
        console.log("onTabItemTap函数执行")
    });
</script>

<style lang="scss" scoped>
    @import "@/common/css/common.css";
</style>